package cn.b.sky.user.model;

import cn.b.sky.common.model.ImeCommon;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;

/**
 * 
 * <strong>Title : NumberRule.java<br></strong>
 * <strong>Package : cn.b.sky.use.model<br></strong>
 * <strong>Description : </strong>编码规则实体<br> 
 * <strong>Create on : 2015-9-25 上午11:10:16<br></strong>
 * <p>
 * @author dapeng.li<br>
 * @version <strong>v1.0.0</strong><br>
 * <br>
 * <strong>修改历史:</strong><br>
 * 修改人 | 修改日期 | 修改描述<br>
 * -------------------------------------------<br>
 * <br>
 * <br>
 */
public class NumberRule extends ImeCommon implements Serializable {

  /** 
  * @Fields serialVersionUID
  * @creator     :dapeng.li
  */
  private static final long serialVersionUID = -2475791949713505728L;

  private String ruleCode;//规则编号

  private String ruleText;//规则描述

  private String preFix;//前缀

  private int enableDateFlag;//是否启用日期

  private int ordinalLength;//编号长度

  private String currentOrdinal;//当前编号

  public String getCurrentOrdinal() {
    return currentOrdinal;
  }

  public void setCurrentOrdinal(String currentOrdinal) {
    this.currentOrdinal = currentOrdinal;
  }

  public String getRuleCode() {
    return StringUtils.upperCase(ruleCode);
  }

  public void setRuleCode(String ruleCode) {
    this.ruleCode = StringUtils.upperCase(ruleCode);
  }

  public String getRuleText() {
    return ruleText;
  }

  public void setRuleText(String ruleText) {
    this.ruleText = ruleText;
  }

  public String getPreFix() {
    return StringUtils.upperCase(preFix);
  }

  public void setPreFix(String preFix) {
    this.preFix = StringUtils.upperCase(preFix);
  }

  public int getEnableDateFlag() {
    return enableDateFlag;
  }

  public void setEnableDateFlag(int enableDateFlag) {
    this.enableDateFlag = enableDateFlag;
  }

  public int getOrdinalLength() {
    return ordinalLength;
  }

  public void setOrdinalLength(int ordinalLength) {
    this.ordinalLength = ordinalLength;
  }

}
